package com.test.card.enums;

public enum  ApiResponseEnum {
    SUCCESS(0, "success", 200),
    SYSTEM_ERROR(-1, "系统繁忙", 500),
    PARAMETERS_FORMAT_ERROR(10001, "parameters format error", 401),
    USER_ALREADY_HAVE(10003,"user already have",500),
    NO_CARD(10004,"cardNO is error",500),
    STATE_ERROR(10002,"state is error",500);

    ApiResponseEnum(Integer code, String message, Integer httpStatus) {
        this.code = code;
        this.message = message;
        this.httpStatus = httpStatus;
    };

    private Integer code;

    private String message;

    private Integer httpStatus;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(Integer httpStatus) {
        this.httpStatus = httpStatus;
    }
}
